﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using CheckLift.UI.Controls;
using System.Collections;
using System.ComponentModel;

namespace CheckLift.Views
{
    /// <summary>
    /// Interaction logic for PickUpWnd.xaml
    /// </summary>
    public partial class PickUpWnd : Window, INotifyPropertyChanged 
    {
        public PickUpWnd()
        {
            InitializeComponent();                                    
        }

        private IEnumerable data;
                                                               
        public String DialogTitle
        { set { lblTitle.Content = value; } }

        public IEnumerable Data 
        {             
            set
            {
                dataGridFilterCtrl1.ItemsData = value;
            } 
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        #endregion

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
        
    }
}
